package com.atguigu.gmall.payment.service;

import com.atguigu.gmall.model.order.OrderInfo;
import com.atguigu.gmall.model.payment.PaymentInfo;

import java.util.Map;

/**
 * @author ：Shine
 * @description：
 * @date ：2021/3/5 13:43
 */
public interface PaymentService {
    void savePaymentInfo (OrderInfo orderInfo, String paymentType);

    PaymentInfo getPaymentInfo(String outTradeNo, String name);

    void paySuccess(String outTradeNo, String name, Map<String, String> paramMap);

    void updatePaymentInfo(String outTradeNo, String name, PaymentInfo paymentInfo);


    void closePayment(Long orderId);
}
